﻿<!--#include file="include/config.asp"-->
<!--#include file="include/conn_f.asp"-->
<!--#include file="top.asp"-->
<%
Function Rnd_Chr(length)
    For i=1 To length
    Randomize
    Rnd_Chr = Rnd_Chr & Chr(Int((122 - 97 + 1) * Rnd + 97))
    Next
End Function


If request("mac_id")="" Then
    Response.Cookies("mac_id")=Rnd_Chr(16)
    Response.Cookies("pass").expires=date()+3650
End If
%>
<table align="center" width="100%" style="background-color: White">
    <tr>
        <td valign="top">
            <script language="javascript">
                function emailcheck() {
                    if (form1.email.value.length != 0) {
                        if (form1.email.value.charAt(0) == "." ||
         form1.email.value.charAt(0) == "@" ||
         form1.email.value.indexOf('@', 0) == -1 ||
         form1.email.value.indexOf('.', 0) == -1 ||
         form1.email.value.indexOf(',', 0) > 0 ||
         form1.email.value.lastIndexOf("@") == form1.email.value.length - 1 ||
         form1.email.value.lastIndexOf(".") == form1.email.value.length - 1) {
                            alert("Email的格式不正确！");
                            form1.email.focus();
                            return false;
                        }
                    }
                    else {
                        alert("Email的不能为空！");
                        form1.email.focus();
                        return false;
                    }
                    return true;
                }

                function check() {

                    if (!emailcheck()) {
                        return false;
                    }

                    if (form1.username.value.length < 1) {
                        alert("您还没有填写会员帐号!");
                        return false;
                    }
                    if (form1.password.value.length < 6) {
                        alert("密码位数太短!");
                        return false;
                    }
                    if (form1.customer_name.value.length < 1) {
                        alert("您的真实姓名没有填写!");
                        return false;
                    }
                    if (form1.email.value.length < 1) {
                        alert("您还没有填写E-mail!");
                        return false;
                    }
                    if (form1.phone.value.length < 1) {
                        alert("您还没有填写联系电话!");
                        return false;
                    }
                    if (form1.address.value.length < 1) {
                        alert("您还没有填写地址!");
                        return false;
                    }
                    if (form1.password.value != form1.password2.value) {
                        alert("您两次输入的密码不相同，请重输！");
                        return false;
                    }

                    return true;
                }
            </script>
            <center>
                <font color='red' size='3'>重要提示:<br />
                    请不要使用他人信用卡付款!!<br />
                    信用卡借给他人使用将导致信用卡被吊销!</font><br />
            </center>
            <center>
                会员注册<br />
                <font color="red">请填写真实有效的注册信息！填写无效信息会影响定单处理速度,或者将退款!</font>
                <table align="center" width="500" border="1" cellspacing="0" class="unnamed1">
                    <form action="regsave.asp" method="post" name="form1" onsubmit="return check()">
                    <tr>
                        <td>
                            会员帐号:(<font color="red">*</font>)
                        </td>
                        <td>
                            <input name="username" size="20" maxlength="20">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            设立密码:(<font color="red">*</font>)
                        </td>
                        <td>
                            <input name="password" size="10" type="password" maxlength="10">(6-10位)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            密重复码:(<font color="red">*</font>)
                        </td>
                        <td>
                            <input name="password2" size="10" type="password" maxlength="10">(6-10位)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            真实姓名:(<font color="red">*</font>)
                        </td>
                        <td>
                            <input name="customer_name" size="20" maxlength="20">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            电子邮件:(<font color="red">*</font>)
                        </td>
                        <td>
                            <input name="email" size="30" maxlength="30"><font color="red">我们将发货到此e-mail</font><br />
                            (请勿使用163,msn,sina信箱,此类信箱收不到邮件)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            联系电话:(<font color="red">*</font>)
                        </td>
                        <td>
                            <select name="phone_country">
                                <option value="美国(001)">美国(001)</option>
                                <option value="加拿大(001)">加拿大(001)</option>
                                <option value="英国(0044)">英国(0044)</option>
                                <option value="澳大利亚(0061)">澳大利亚(0061)</option>
                                <option value="新西兰(0064)">新西兰(0064)</option>
                                <option value="新加坡(0065)">新加坡(0065)</option>
                                <option value="法国(0033)">法国(0033)</option>
                                <option value="德国(0049)">德国(0049)</option>
                                <option value="比利时(0032)">比利时(0032)</option>
                                <option value="丹麦(0045)">丹麦(0045)</option>
                                <option value="爱尔兰(00353)">爱尔兰(00353)</option>
                                <option value="芬兰(00358)">芬兰(00358)</option>
                                <option value="荷兰(0031)">荷兰(0031)</option>
                                <option value="西班牙(0034)">西班牙(0034)</option>
                                <option value="瑞典(0046)">瑞典(0046)</option>
                                <option value="瑞士(0041)">瑞士(0041)</option>
                                <option value="日本(0081)">日本(0081)</option>
                                <option value="其他">其他</option>
                                其他
                            </select>
                            <input name="phone" size="30" maxlength="40"><br />
                            (若您现在国外,请填国外电话!)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            备用联系电话:
                        </td>
                        <td>
                            <select name="mobile_country">
                                <option value="中国(0086)">中国(0086)</option>
                                <option value="美国(001)">美国(001)</option>
                                <option value="加拿大(001)">加拿大(001)</option>
                                <option value="英国(0044)">英国(0044)</option>
                                <option value="澳大利亚(0061)">澳大利亚(0061)</option>
                                <option value="新西兰(0064)">新西兰(0064)</option>
                                <option value="新加坡(0065)">新加坡(0065)</option>
                                <option value="法国(0033)">法国(0033)</option>
                                <option value="德国(0049)">德国(0049)</option>
                                <option value="比利时(0032)">比利时(0032)</option>
                                <option value="丹麦(0045)">丹麦(0045)</option>
                                <option value="爱尔兰(00353)">爱尔兰(00353)</option>
                                <option value="芬兰(00358)">芬兰(00358)</option>
                                <option value="荷兰(0031)">荷兰(0031)</option>
                                <option value="西班牙(0034)">西班牙(0034)</option>
                                <option value="瑞典(0046)">瑞典(0046)</option>
                                <option value="瑞士(0041)">瑞士(0041)</option>
                                <option value="日本(0081)">日本(0081)</option>
                                <option value="其他">其他</option>
                                其他
                            </select>
                            <input name="mobile" size="30" maxlength="40"><br />
                            (若您现在国内,请填国内电话!)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            地址:(<font color="red">*</font>)
                        </td>
                        <td>
                            <input name="address" size="40" maxlength="50">
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            邮编:<input name="zip" size="6" maxlength="10">&nbsp;&nbsp; 城市,(省/州):<input name="city"
                                size="15" maxlength="50"><br />
                            国家:<select name="country">
                                <option value="中国">中国</option>
                                <option value="United States">United States</option>
                                <option value="Canada">Canada</option>
                                <option value="United Kingdom">United Kingdom</option>
                                <option value="Australia">Australia</option>
                                <option value="Singapore">Singapore</option>
                                <option value="France">France</option>
                                <option value="Belgium">Belgium</option>
                                <option value="Fineland">Findland</option>
                                <option value="Germany">Germany</option>
                                <option value="Ireland">Ireland</option>
                                <option value="Italy">Italy</option>
                                <option value="Holland">Holland</option>
                                <option value="Spain">Spain</option>
                                <option value="Portugal">Portugal</option>
                                <option value="Sweden">Sweden</option>
                                <option value="Switzerland">Switzerland</option>
                                <option value="New Zealand">New Zealand</option>
                                <option value="Norway">Norway</option>
                                <option value="Japan">Japan</option>
                                <option value="Other">Other</option>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            QQ或MSN:
                        </td>
                        <td>
                            <input name="qq" size="30" maxlength="30">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center">
                            <input type="submit" value="会员注册">
                        </td>
                    </tr>
                </table>
            </center>
        </td>
    </tr>
</table>
<!--#include file="bottom.asp"-->
